import Vue from 'vue'
import Vuex from 'vuex'
import home from './modules/home.js'
import video from './modules/video.js'

Vue.use(Vuex)

export default new Vuex.Store({
	state: {},
	getters: {
		banners: state => state.home.banners,
		hitLists: state => state.home.hitLists,
		recommendPlaylist: state => state.home.recommendPlaylist,
		recommendSongs: state => state.home.recommendSongs,
		newRanking: state => state.home.newRanking,
		originRanking: state => state.home.originRanking,
		upRanking: state => state.home.upRanking,
		peakList: state => state.home.peakList,
		listDetail: state => state.home.listDetail,
		songInfo: state => state.home.songInfo,
		lyrics: state => state.home.lyrics,
		videoLists: state => state.video.videoLists,
		hasMore: state => state.video.hasMore,
		mvDetail: state => state.video.mvDetail,
		mvVideo: state => state.video.mvVideo,
		mvLists: state => state.video.mvLists
	},
	mutations: {},
	actions: {},
	modules: {
		home,
		video
	}
})
